<!DOCTYPE html>
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>lo♥ve</title>
	<meta name="keywords" content="lo♥ve"/>
	<meta name="description" content="lo♥ve"/>
<head>

<style type="text/css">
@font-face {
	font-family: digit;
	src: url('digital-7_mono.ttf') format("truetype");
}
</style>

<link href="css/default.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/garden.js"></script>
<script type="text/javascript" src="js/functions.js"></script>

</head>

<body>

<audio id="bgmusic" src="韩安旭-多幸运.mp3" autoplay="autoplay" loop="loop" ></audio>
<script type="text/javascript">
  function toggleSound() {
            var music = document.getElementById("bgmusic");//获取ID
                console.log(music);
                console.log(music.paused);
            if (music.paused) { //判读是否播放
                music.paused=false;
                music.play(); //没有就播放
            }

        }
setInterval("toggleSound()",1);
</script>

 
<div id="mainDiv">
	
	<div id="content">
		
		<div id="code">
			<span class="comments">(若没有背景音乐，请点击下屏幕；若还没有请复制网址到浏览器打开！)</span><br />
			<span class="comments">&thinsp;&thinsp;&thinsp;🌹&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;🌹</span><br />
			<span class="comments">🌹&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;🌹&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;🌹</span><br />
			<span class="comments">&thinsp;&thinsp;🌹All Is You🌹</span><br />
			<span class="comments">&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;🌹&thinsp;&thinsp;&thinsp;🌹</span><br />
			<span class="comments">&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;&thinsp;🌹</span><br />
			<span class="comments">Welcome back to our "small" home!</span><br />
			<span class="comments">Recalling the day when I first saw you~</span><br />
			<span class="comments">I feel the sunshine that day is particularly bright and beautiful</span><br />
			<span class="comments">From then on</span><br />
			One Boy name = <span class="keyword">Mr</span> ***<br />
			One Girl name = <span class="keyword">Mrs</span> ***<br />
			<span class="keyword">Their story begins!!<br />
			<span class="comments">🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹🌹</span><br />
			<span class="comments">The boy can't talk sweet words,</span><br />
			<span class="comments">But he will prove everything with his actions</span><br />
			<span class="comments">Some things are more afraid of losing because they care more</span><br />
			<span class="comments">It's still a long time. The boy hopes to live together with the girl</span><br />
			<span class="comments">The time is also short. The boy hopes that the girl will never leave</span><br />
			<span class="comments">May it be this girl sooner or later</span><br />
			<br>
			<br>
			SO,I want to say:<br />
			Baby, I love you forever;<br />
		</div>
		<div id="loveHeart">
			<canvas id="garden"></canvas>
			<div id="words">
				<div id="messages">
					From that day to now.
					<div id="elapseClock"></div>
				</div>
				<div id="loveu">
					Love you till forever<br/>
					<div class="signature">Mr ***</div>
				</div>
			</div>
		</div>
	</div>
	<div id="copyright">
		<a href="#">....</a><br />
		<a href="#">....</a><br />
		
	</div>
</div>

<script type="text/javascript">
var offsetX = $("#loveHeart").width() / 2;
var offsetY = $("#loveHeart").height() / 2 - 55;
var together = new Date();
together.setFullYear(2022, 6, 6);
together.setHours(0);
together.setMinutes(0);
together.setSeconds(0);
together.setMilliseconds(0);

if (!document.createElement('canvas').getContext) {
	var msg = document.createElement("div");
	msg.id = "errorMsg";
	msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+"; 
	document.body.appendChild(msg);
	$("#code").css("display", "none")
	$("#copyright").css("position", "absolute");
	$("#copyright").css("bottom", "10px");
	document.execCommand("stop");
} else {
	setTimeout(function () {
		startHeartAnimation();
	}, 5000);

	timeElapse(together);
	setInterval(function () {
		timeElapse(together);
	}, 500);

	adjustCodePosition();
	$("#code").typewriter();
}
</script>

</body>
</html>